{template common/header}
<style>
.header {height: 120px;width: 100%;background: #3272ee;background: url(source/plugin/dc_signin/images/top_bg.jpg) no-repeat center center;position: relative;}
.info{height: 50px;width: 100%;background: #FFFFFF;box-shadow: 0 1px 2px 0 #e0e0e0;}
.info .item{float: left;width: 33%;margin-top: 5px;height: 40px;text-align: center;font-size: 14px;color: #555;border-right: 1px solid #cccdce;}
.item .ititle{font-weight: bold;height: 20px;line-height: 20px;}
.item .iitem{height: 20px;line-height: 20px;}
.item div span{font-size: 12px;}
.layer_dcsignin { padding: 10px 0 0; width: 322px; overflow: hidden; position: relative; }
.layer_dcsignin .dcsignin_title{background:url("source/plugin/dc_signin/images/top.png")  no-repeat;width:162px;height:15px;margin:0 15px 10px;}
.layer_dcsignin .dcsignin_list{	padding:0 0 5px 15px;	}
.layer_dcsignin .dcsignin_list li{	float:left;	text-align:center;cursor:pointer;height:60px;}
.layer_dcsignin .dcsignin_list li div{	padding:4px 5px 2px;width:48px;}
.layer_dcsignin .dcsignin_list li.current div{	border:1px solid #99d0ff;background:#eaf6ff;padding:3px 4px 1px;}
.layer_dcsignin .dcsignin_list li img{	display:block;margin:0 0 3px;margin-left:8px;*margin-left:3px;}
.layer_dcsignin .dcsignin_send{	padding:5px 15px;}
.layer_dcsignin .dcsignin_send textarea{width:280px;padding:5px;border:1px solid #c6c6c6;font-family:"Tahoma";line-height:18px;	height:55px;margin-top: 20px;}
.btn{display: block;width: 96%;margin: 8px auto;height: 40px;line-height: 40px;border-radius: 4px;background: #5494ee;text-align: center;color: #fff;font-size: 18px;text-decoration:none;border:0px;}
.infomore{display: block;padding: 10px;margin-top: 10px;color: #303030;border: 1px solid #E0E0E0;border-radius: 3px;font-size: 13px;background-color: #FFF;}
.infomore b{color:#FF0000}
.return{display: block;padding: 10px;margin-top: 10px;color: #303030;border: 1px solid #E0E0E0;border-radius: 3px;font-size: 13px;background-color: #FFF;text-align:center}
</style>
<div class="header" id="header">
	<div style="width:70px;height:70px;position: absolute; top:40px; left:16px; border-radius: 8px;background: rgba(255,255,255,1);">
	<img src="uc_server/avatar.php?uid={$_G['uid']}&size=middle" style="width:64px;height:64px;margin-top:3px;margin-left:3px; border-radius: 8px;"/>
	</div>
	<div style="position: absolute;padding:2px 5px; border-radius: 6px; text-align:center; top:54px;left:96px;color:#FFFFFF;background: rgba(0,0,0,.5);height:20px;line-height: 20px;">
		{$_G['username']}
	</div>
</div>
<div class="info">
	<div class="item">
		<div class="ititle">
			{lang dc_signin:mobile_ljqd}
		</div>
		<div class="iitem">
			{$mysignin[days]}<span>{lang dc_signin:day}</span>
		</div>
	</div>
	<div class="item">
		<div class="ititle">
			{lang dc_signin:mobile_lxqd}
		</div>
		<div class="iitem">
			{$mysignin[condays]}<span>{lang dc_signin:day}</span>
		</div>
	</div>
	<div class="item" style="border-right: none;">
		<div class="ititle">
			{lang dc_signin:mobile_jl}{$_G[setting][extcredits][$_G[cache][plugin][dc_signin][extcredit]][title]}
		</div>
		<div class="iitem">
			{$mysignin['credit']}<span>{lang dc_signin:ge}</span>
		</div>
	</div>
</div>
<!--{if $mysignin['dateline']<$todaystime}-->
<form method="post" id="signform" action="plugin.php?id=dc_signin:sign">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="signsubmit" value="yes" />
<input type="hidden" name="handlekey" value="signin" />
<input type="hidden" name="emotid" id="emotid" />
<input type="hidden" name="referer" value="{echo $_G['siteurl']}plugin.php?id=dc_signin:sign" />
<div class="layer_dcsignin">
<div class="dcsignin_title"></div>
<ul class="dcsignin_list">
	<!--{loop $emots $e}-->
	<li onmouseover="this.className='current'" onmouseout="this.className=$('#emotid').val()=={$e[id]}?this.className:''" onclick="check(this, {$e[id]})"><div class="dcsignin2"><img width="32" height="32" id="emot_{$e[id]}" src="source/plugin/dc_signin/images/emot/{$e[icon]}" title="{$e[text]}" alt="{$e[name]}">{$e[name]}</div></li>
	<!--{/loop}-->
</ul>
<div class="dcsignin_send">
 		<textarea name="content" id="content"></textarea>
 	</div>
</div>
<p class="o pns">
<button type="submit" name="signpn" value="true" class="btn"><strong>{lang dc_signin:confirm}</strong></button>
</p>
</form>
<script type="text/javascript">
function check(obj, id) {
	var lis = obj.parentNode.childNodes;
	for(var i = 0; i < lis.length; i ++) {
		lis[i].className = '';
	}
	obj.className = 'current';
	$('#emotid').val(id);
	$('#content').html($('#emot_' + id).attr("title"));
}
</script>
<!--{else}-->
<div class="infomore"> 
	<p>{lang dc_signin:indext_1}<b>{$_G[username]}</b>{lang dc_signin:issiginin}</p>
	<p>{lang dc_signin:mobile_2} <b>{$mysignin[days]}</b> {lang dc_signin:day} {lang dc_signin:indext_3} <b>{$mysignin[condays]}</b> {lang dc_signin:day}</p>
	<p>{lang dc_signin:indext_4} <b>{$mysignin[monthdays]}</b> {lang dc_signin:day} {lang dc_signin:indext_5} <b>{$mysignin[monthcondays]}</b> {lang dc_signin:day}</p>
	<p>{lang dc_signin:indext_6}<b>{echo dgmdate($mysignin[dateline])}</b></p>
	<p>{lang dc_signin:mobile_8}{$_G[setting][extcredits][$_G[cache][plugin][dc_signin][extcredit]][title]} <b>{$mysignin[bcredit]}</b> .</p>
	<p>{lang dc_signin:indext_9} <b>{$qdgroup[$mysignin[sgid]][grouptitle]}</b></p>
	<p>{lang dc_signin:mobile_10} <b>{echo $upgrade[dayslower]-$mysignin[days]}</b> {lang dc_signin:mobile_11} <b>{$upgrade[grouptitle]}</b> .</p>
</div>
<!--{/if}-->
<button type="button" name="signpn" onclick="location.href='forum.php';" class="btn" style="cursor:pointer"><strong>{lang dc_signin:return}</strong></button>
{template common/footer}